package org.llc.gof.behavior.state.basic;

/**
 * @author Fancy
 */
public class ConcreteState2 extends State {

	@Override
	public void handle1() {		
		//设置当前状态为stat1
		super.context.setCurrentState(Context.STATE1);
		//过渡到state1状态，由Context实现
		super.context.handle1();
	}

	@Override
	public void handle2() {
		System.out.println("handle2");
	}

}
